#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main()
{
	char t;
	scanf("%c", &t);
	switch (t)
	{
	case 'a':
		printf("qwq");
		break;
	case 'A':
		printf("QwQ");
		break;
	default:
		printf("QWQ");
		break;
	}
	return 0;
}